<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
	<title>三方28数据管理</title>
	
<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/link.jsp"%>
	<link rel="stylesheet" href="${res }/default/css/content.css" /> 
	
<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/script.jsp"%>
<script src="${res }/default/js/manage.js"></script>

<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/header.jsp"%>
	<div class="xl-content ">
		<div class="xl-content-sidebar pull-left">
			<%@ include file="/WEB-INF/template/include/menu.jsp"%>
		</div>
		
		<div class="xl-content-main">
			<form id="J_form" class="form" action="${ctx }/stc/r4n/manage.html" method="post">
				<div class="well">
					<h2 class="xl-form-title">4余统计管理</h2>
					<hr />
					<table class="table table-bordered table-striped table-hover">
						<thead>
							<tr>
								<th width="80">序号</th>
								<th width="100">日期</th>
								<th width="80">4余0</th>
								<th width="80">4余1</th>
								<th width="80">4余2</th>
								<th >4余3</th>
								<th width="150">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${stcR4ns }" var="item" varStatus="status">
							<tr>
								<td>${status.index+1 }</td>
								<td><fmt:formatDate value="${item.date }" pattern="yyyy-MM-dd"/></td>
								<td>${item.n0 }</td>
								<td>${item.n1 }</td>
								<td>${item.n2 }</td>
								<td>${item.n3 }</td>
								<td>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-pencil-square-o" title="修改" onclick="window.app.dialog.iframe({title:'修改',url:'${ctx}/stc/r4n/update.html?id=${item.id}'})"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-list-alt" title="查看" onclick="window.app.dialog.iframe({title:'查看',url:'${ctx}/stc/r4n/detail.html?id=${item.id}'})"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-trash-o" title="删除" onclick="window.app.dialog.confirm('确定删除？',Utils.proxy(window.manage.remove,'${item.id}'))"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-copy" title="复制" onclick="window.app.dialog.confirm('确定复制？',Utils.proxy(window.manage.copy,'${item.id}'))"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-calculator" title="计算" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/r4n/calculate.html?id=${item.id}'})"></a>
								</td>
							</tr>	
							</c:forEach>
						</tbody>
					</table>
					<div>
						<div class="pull-left">
							<button type="button" onclick="window.manage.openSearch()" class="btn btn-sm"><i class=" fa fa-search"></i>筛选</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'新增',url:'${ctx}/stc/r4n/create.html'})" class="btn btn-sm"><i class=" fa fa-plus"></i>新增</button>
							<button type="button" onclick="window.manage.expt()" class="btn btn-sm"><i class=" fa fa-file-excel-o"></i>导出</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'统计',url:'${ctx}/stc/r4n/statistics.html'})" class="btn btn-sm"><i class=" fa fa-pie-chart "></i>统计</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'总计',url:'${ctx}/stc/r4n/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator "></i>总计</button>
						</div>
						<%@ include file="/WEB-INF/template/include/paging.jsp"%>
						<div class="clear-right"></div>
					</div>
					<div id="J_condition_container">
						<div class="form-horizontal xl-mange-condition" id="J_condition" style="width:500px;display:none;">   
							<div class="well" >
								<h2 class="xl-form-title">筛选条件</h2> 
								<div class="form-group">
									<label class="control-label col-xs-3">日期</label>
									<div class="col-xs-3">
										<select class="form-control" name="dateOp">
											<option value="gt" >从</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control Wdate" type="text" name="dateStart"  onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})" readonly="readonly" placeholder="日期" title="日期" value="${dateStart }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3"></label>
									<div class="col-xs-3">
										<select class="form-control" name="dateOp">
											<option value="gt" >到</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control Wdate" type="text" name="dateEnd" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})" readonly="readonly" placeholder="日期" title="日期" value="${dateEnd }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">4余0</label>
									<div class="col-xs-3">
										<select class="form-control" name="n0Op">
											<option value="eq" <c:if test="${n0Op=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${n0Op=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${n0Op=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${n0Op=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${n0Op=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="n0" placeholder="4余0" title="4余0" value="${n0 }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">4余1</label>
									<div class="col-xs-3">
										<select class="form-control" name="n1Op">
											<option value="eq" <c:if test="${n1Op=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${n1Op=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${n1Op=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${n1Op=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${n1Op=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="n1" placeholder="4余1" title="4余1" value="${n1 }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">4余2</label>
									<div class="col-xs-3">
										<select class="form-control" name="n2Op">
											<option value="eq" <c:if test="${n2Op=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${n2Op=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${n2Op=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${n2Op=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${n2Op=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="n2" placeholder="4余2" title="4余2" value="${n2 }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">4余3</label>
									<div class="col-xs-3">
										<select class="form-control" name="n3Op">
											<option value="eq" <c:if test="${n3Op=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${n3Op=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${n3Op=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${n3Op=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${n3Op=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="n3" placeholder="4余3" title="4余3" value="${n3 }"/>
									</div>
								</div> 
								<button type="button"  class=" xl-btn-login btn-block "  onclick="window.manage.search()">筛选</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="clearfix"></div>
	</div>
	
<%-- 页脚
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
